<?php
	session_start();
	$_SESSION['id']=1;
?>
<html>
	<head>
		<script>
			/*
			
			*/
			var worker = new Worker("java.js");
			worker.addEventListener("message", messageHandler, true); 
			function messageHandler(e) { 
			 document.getElementById("a").innerHTML+=e.data;
			}
				function click()
				{
					worker.postMessage(msg.value);
				}
		</script>
	</head>
	<body >
		<textarea id='a' ></textarea>
		<br/>
		<input type='text' name='msg'/>
		<input type='button' value='send' onclick='click()'/>
		
	</body>
</html>
